import random

create_waybill_data = {
    "waybillNo": '',  # 运单号
    "orderNo": "",  # 订单号
    "projectName": "顺丰-亚申",  # 项目名称
    "projectNo": "20120216465100013",  # 项目编号
    "customer": "顺丰控股股份有限公司",  # 客户
    "customerNo": "440SF000620",  # 客户编号
    "customerOrderNo": '客户订单号',  # 客户订单号
    "thirdOrderNo": "11",  # 三方单号
    "shipperName": "接口创建发货人",  # 发货人姓名
    "shipperPhone": "15556663333",  # 发货人电话
    "shipperProvince": "河南省",  # 发货方省份
    "shipperProvinceCode": "410000",  # 发货方省份code
    "shipperCity": "漯河市",  # 发货方城市
    "shipperCityCode": "411100",  # 发货方城市code
    "shipperDistrict": "源汇区",  # 发货方区县
    "shipperDistrictCode": "411102",  # 发货方区县code
    "shipperAddress": "河南省漯河市源汇区美的物流园（松松云仓）",  # 发货方详细地址
    "receiverName": "接口创建收货人",  # 收货人姓名
    "receiverPhone": "16633332222",  # 收货人电话
    "receiverProvince": "贵州省",  # 收货方省份
    "receiverProvinceCode": "520000",  # 收货方省份code
    "receiverCity": "铜仁市",  # 收货方城市
    "receiverCityCode": "520600",  # 收货方城市code
    "receiverDistrict": "松桃苗族自治县",  # 收货方区县
    "receiverDistrictCode": "520628",  # 收货方区县code
    "receiverAddress": "河南郑州市郑州经济技术开发区第二十一大街东经南十六路以北交叉口",  # 收货详细地址
    "requiredDeliveryDate": None,  # 要求提货日期
    "requiredArrivalDate": None,  # 要求到货日期
    "line": "漯河市-铜仁市",  # 线路
    "hasReceipt": True,  # 是否有回单
    "requirementRemark": "备注",  # 运输要求备注
    "transportMode": "WHOLE_VEHICLE",  # 运输方式
    "carModel": "GAO_DI_BAN_CHE",  # 车型
    "carLength": "5.0",  # 车长
    "freight": 20,  # 运费
    "serviceType": None,  # 服务类型
    "chargeMode": "CAR_SAY_VALUATION",  # 计费方式
    "settlement": "H",  # 结算方式
    "cashPayment": "",  # 现付
    "arrivalPayment": "",  # 到付
    "receiptPayment": 20,  # 回单付
    "goodsList": [
        {
            "goodsName": "1",
            "goodsWeight": 1,
            "goodsVolume": 1,
            "goodsNums": 1,
            "goodsWorth": 1,
            "goodsCosts": 1,
            "goodsUnit": "1"
        }
    ],  # 货物信息
    "showFreight": True
}
get_waybill_id_data = {
    "waybillNoList": [
        "Y21090601090000078"
    ],
    "createdDateStart": None,
    "createdDateEnd": None,
    "hasReceipt": None,
    "size": 20,
    "page": 1
}
# create_shift_data = {
#     "shiftNo": "SF21091801090000044",  # 派送单号
#     "projectName": "顺丰-滁州-瑞旋",  # 项目名称
#     "projectNo": "20120216465100013",  # 项目编号
#     "carrierType": "YES",  # 承运商类型
#     "carrierCompanyNo": "00000067",  # 承运商id
#     "carrierCompanyName": "上海亚申物流管理有限公司",  # 承运商姓名
#     "carrierCompanyCode": "91310118MA1JL47576",  # 统一社会信用代码
#     "contractNo": "HT-20120216465100013-1",  # 合同编号
#     "contractName": "顺丰-亚申（上游合同）",  # 合同名称
#     "valuationType": "UP_PRICE_VALUATION",  # 计价类型
#     "dispatchType": None,  # 调度单类型
#     "waybillCostAvg": "WAYBILL_FREIGHT",  # 运单成本平摊
#     "shiftType": 2,  # 承运方式
#     "outsideDriverCarId": 7072,
#     "demandCarInfoId": None,
#     "ownCarId": None,
#     "ownDriverId": None,
#     "driverName": "胡鑫",
#     "driverMobile": "17621062354",
#     "licensePlate": "沪N23567",
#     "driverIdCard": None,
#     "carCubage": "",
#     "carLength": None,
#     "actualCarLength": "",
#     "sendProvince": "河南省",
#     "sendProvinceCode": "410000",
#     "sendCity": "漯河市",
#     "sendCityCode": "411100",
#     "sendDistrict": "源汇区",
#     "sendDistrictCode": "411102",
#     "sendAddress": "河南省漯河市源汇区美的物流园（松松云仓）",
#     "arriveProvince": "贵州省",
#     "arriveProvinceCode": "520000",
#     "arriveCity": "铜仁市",
#     "arriveCityCode": "520600",
#     "arriveDistrict": "松桃苗族自治县",
#     "arriveDistrictCode": "520628",
#     "arriveAddress": "河南郑州市郑州经济技术开发区第二十一大街东经南十六路以北交叉口",
#     "station": "[]",
#     "shouldPay": 120,  # 应付金额
#     "paymentMethod": 1,  # 支付方式
#     "nowPay": 100,  # 现付
#     "toPay": "",  # 到付
#     "checkForPay": "",  # 对账付
#     "finalPay": "",  # 回单付
#     "finalAmount": 20,  # 尾款
#     "receivable": 100,  ##应付给司机(或者应付给承运商)
#     "paymentMethodToDriver": 1,  # 应付给司机(或者应付给承运商)的支付方式
#     "thirdNowPay": 80,  # 现付
#     "thirdToPay": "",  # 到付
#     "thirdCheckForPay": "",  # 对账付
#     "thirdFinalPay": "",  # 回单付
#     "thirdFinalAmount": 20,  # 尾款
#     "hasThird": True,  # 是否有三方承运商
#     "thirdCarrierName": "永丰县惠利物流有限公司",  # 三方承运商名称
#     "thirdCarrierNo": "00000034",  # 三方承运商编号
#     "thirdCorpId": "yrvjDjdDFfuXlozx",  # 三方承运商id
#     "thirdOrganizationCode": "91360825079008995W",  # 三方承运商组织机构代码
#     "thirdPlatForm": "YES",  # 三方承运商类型
#     "thirdContractNo": "HT-20120216465100013",  # 三方承运合同
#     "thirdContractName": "顺丰-亚申合同",  # 三方承运合同名称
#     "shiftWaybillDTOList": [
#         {
#             "waybillId": 243449
#         },
#         {
#             "waybillId": 243450
#         }
#     ],  # 运单
#     "sendLon": "114.025790",
#     "sendLat": "33.536969",
#     "arriveLon": None,
#     "arriveLat": None,
#     "shiftFrom": "PC"
# }
create_shift_data ={
	"shiftNo": "YS21112602015000003",
	"projectName": "顺丰-滁州-瑞旋",
	"projectNo": "440SF000128016",
	"carrierType": "YES",
	"carrierCompanyNo": "00000067",
	"carrierCompanyName": "上海瑞旋物流有限公司",
	"carrierCompanyCode": "91310118MA1JL47576",
	"contractNo": "",
	"contractName": "",
	"valuationType": "UP_PRICE_VALUATION",
	"dispatchType": None,
	"waybillCostAvg": "WAYBILL_FREIGHT",
	"shiftType": 2,
	"outsideDriverCarId": 7161,
	"demandCarInfoId": None,
	"ownCarId": None,
	"ownDriverId": None,
	"driverName": "吴松达",
	"driverMobile": "18516327296",
	"licensePlate": "鄂E82239",
	"driverIdCard": "370826199311095759",
	"carCubage": 2,
	"carLength": "4.2",
	"actualCarLength": 4.2,
	"sendProvince": "上海市",
	"sendProvinceCode": "310000",
	"sendCity": "上海城区",
	"sendCityCode": "310100",
	"sendDistrict": "崇明区",
	"sendDistrictCode": "310151",
	"sendAddress": "十大",
	"arriveProvince": "上海市",
	"arriveProvinceCode": "310000",
	"arriveCity": "上海城区",
	"arriveCityCode": "310100",
	"arriveDistrict": "黄浦区",
	"arriveDistrictCode": "310101",
	"arriveAddress": "12",
	"station": "[]",
	"shouldPay": 121,
	"paymentMethod": 4,
	"nowPay": "",
	"toPay": "",
	"checkForPay": "",
	"finalPay": 121,
	"finalAmount": 0,
	"receivable": 12,
	"paymentMethodToDriver": 2,
	"thirdNowPay": "",
	"thirdToPay": 12,
	"thirdCheckForPay": "",
	"thirdFinalPay": "",
	"thirdFinalAmount": 0,
	"hasThird": False,
	"thirdCarrierName": "",
	"thirdCarrierNo": "",
	"thirdCorpId": "",
	"thirdOrganizationCode": "",
	"thirdPlatForm": None,
	"thirdContractNo": "",
	"thirdContractName": "",
	"cashReceiveWay": None,
	"arrivalReceiveWay": None,
	"receiptReceiveWay": None,
	"shiftWaybillDTOList": [{
		"waybillId": 264548
	}],
	"sendLon": None,
	"sendLat": None,
	"arriveLon": None,
	"arriveLat": None,
	"shiftFrom": "PC"
},
#派车到司机无承运商，支付给司机
create_shift_data_driver={
    "shiftNo":"YS21100902015000002",
    "projectName":"顺丰-亚申",
    "projectNo":"20120216465100013",
    "carrierType":None,
    "carrierCompanyNo":"",
    "carrierCompanyName":"",
    "carrierCompanyCode":"",
    "contractNo":"",
    "contractName":"",
    "valuationType":"CAR_SAY_VALUATION",
    "dispatchType":None,
    "waybillCostAvg":"WAYBILL_FREIGHT",
    "shiftType":2,
    "outsideDriverCarId":6958,
    "demandCarInfoId":None,
    "ownCarId":None,
    "ownDriverId":None,
    "driverName":"胡鑫",
    "driverMobile":"17621062352",
    "licensePlate":"沪N56786",
    "driverIdCard":"341021199305030756",
    "carCubage":"",
    "carLength":None,
    "actualCarLength":"",
    "sendProvince":"海南省",
    "sendProvinceCode":"460000",
    "sendCity":"定安县",
    "sendCityCode":"469021",
    "sendDistrict":"定安县",
    "sendDistrictCode":"469021",
    "sendAddress":"青浦区徐泾镇明珠路1008号",
    "arriveProvince":"河南省",
    "arriveProvinceCode":"410000",
    "arriveCity":"郑州市",
    "arriveCityCode":"410100",
    "arriveDistrict":"新郑市",
    "arriveDistrictCode":"410184",
    "arriveAddress":"河南郑州市郑州经济技术开发区第二十一大街东经南十六路以北交叉口　\n",
    "station":"[]",
    "shouldPay":12,
    "paymentMethod":1,
    "nowPay":12,
    "toPay":"",
    "checkForPay":"",
    "finalPay":"",
    "finalAmount":0,
    "receivable":"",
    "paymentMethodToDriver":None,
    "thirdNowPay":"",
    "thirdToPay":"",
    "thirdCheckForPay":"",
    "thirdFinalPay":"",
    "thirdFinalAmount":"",
    "hasThird":False,
    "thirdCarrierName":"",
    "thirdCarrierNo":"",
    "thirdCorpId":"",
    "thirdOrganizationCode":"",
    "thirdPlatForm":None,
    "thirdContractNo":"",
    "thirdContractName":"",
    "shiftWaybillDTOList":[
        {
            "waybillId":226662
        }
    ],
    "sendLon":"110.225840",
    "sendLat":"18.752850",
    "arriveLon":"113.827712",
    "arriveLat":"34.702738",
    "shiftFrom":"PC"
}
pay_id_data={
    "payerName":"",
    "beneficiaryName":"",
    "shiftApplyStartDate":None,
    "shiftApplyEndDate":None,
    "payNo":"",
    "status":None,
    "paymentMethodList":[

    ],
    "projNo":"",
    "customerNoList":[

    ],
    "waybillNoList":[
        "Y21091801090000122",
        "Y21090701090000050"
    ],
    "bizNo":"",
    "payBusinessMode":None,
    "payApplyStatus":None,
    "contractNo":"",
    "licensePlate":"",
    "originDriverName":"",
    "page":1,
    "size":20
}


pay_data={
    "payWay":"OFFLINE",
    "kekingPayPassword":"123456",
    "receiveWay":None,
    "detail":[
        {
            "id":19196,
            "createdDate":"2021-09-22 10:18:04",
            "lastModifiedDate":"2021-09-22 10:18:04",
            "companyNo":"00000033",
            "companyName":"上海亚申物流管理有限公司",
            "delStatus":False,
            "createdBy":"003301001",
            "createdByName":"管理员",
            "lastModifiedBy":"003301001",
            "lastModifiedByName":"管理员",
            "payNo":"21092200818612",
            "status":"CREATE",
            "paymentMethod":4,
            "amount":60,
            "businessUpNo":"eGdwAkjhughAbkiT",
            "businessUpCompanyNo":"00000033",
            "businessUpName":"上海亚申物流管理有限公司",
            "businessDownNo":"yrvjDjdDFfuXlozx",
            "businessDownCompanyNo":"00000034",
            "businessDownName":"永丰县惠利物流有限公司",
            "payerNo":"eGdwAkjhughAbkiT",
            "payerName":"上海亚申物流管理有限公司",
            "beneficiaryNo":"yrvjDjdDFfuXlozx",
            "beneficiaryName":"永丰县惠利物流有限公司",
            "beneficiaryBankCardNo":None,
            "beneficiaryMobile":None,
            "beneficiaryCompanyNo":"00000034",
            "driverCarId":None,
            "payInfo":"YS21092201090000035回单付",
            "bizNo":"YS21092201090000035",
            "bizType":"SHIFT",
            "payWay":None,
            "receiveWay":None,
            "payChannel":None,
            "createDepId":6061,
            "createDepName":"总部",
            "projNo":"20120216465100013",
            "projName":"顺丰-亚申",
            "startDate":None,
            "endDate":None,
            "kekingPayTradeNo":None,
            "applyForTradeNo":None,
            "shiftApplyDate":"2021-09-22 09:18:01",
            "remark":None,
            "payerAccountType":None,
            "bankName":None,
            "branchName":None,
            "bankLineNo":None,
            "cardType":None,
            "cardAttribute":None,
            "beneficiaryAccountType":None,
            "kekingPayPassword":None,
            "contractNo":None,
            "feeAmt":None,
            "income":None,
            "wayBillLine":"河南省,漯河市,源汇区 —— 贵州省,铜仁市,松桃苗族自治县",
            "payeeIdNo":None,
            "projects":None,
            "projectNo":None,
            "driverName":None,
            "driverMobile":None,
            "driverIdNo":None,
            "carNo":None,
            "applyDate":None,
            "arrivalDate":None,
            "shiftCreateDate":None,
            "shiftStatus":None,
            "upWayBillId":None,
            "detail":None,
            "payApplyStatus":None,
            "payApplyRemark":None,
            "applyUsername":None,
            "applyName":None,
            "applyTime":None,
            "payBusinessMode":"BASIC",
            "currCompanyNo":None,
            "wayBillNo":"Y21092201090000024,Y21092201090000023",
            "customerOrderNo":"尾款796635,尾款1706240",
            "backTicketPic":[
                "https://kk-oss.oss-cn-shanghai.aliyuncs.com/ctms/uat/2021-07-28/receiptConfirm/M627-014__uuid__347bc318-8625-446f-ac9c-9e80932b0eb1__uuid__c7c79370-e118-47d2-b8fe-f1bc255fe9c5.jpg?Expires=1632308818&OSSAccessKeyId=LTAI4G83BJatPBRUtmEsYn2b&Signature=Dyl6I9pQ8bx3fa05JibBp4gmcnU%3D",
                "https://kk-oss.oss-cn-shanghai.aliyuncs.com/ctms/uat/2021-07-28/receiptConfirm/M628-003__uuid__46faa4d9-978a-4898-be56-095d8133f4d5__uuid__4171ce90-08cf-4901-aa68-c08162c23da5.jpg?Expires=1632308818&OSSAccessKeyId=LTAI4G83BJatPBRUtmEsYn2b&Signature=GCTvuMPsHTPauD8tvRRgxhd3rsc%3D",
                "https://kk-oss.oss-cn-shanghai.aliyuncs.com/ctms/uat/2021-07-28/receiptConfirm/M627-014__uuid__347bc318-8625-446f-ac9c-9e80932b0eb1__uuid__c7c79370-e118-47d2-b8fe-f1bc255fe9c5.jpg?Expires=1632308818&OSSAccessKeyId=LTAI4G83BJatPBRUtmEsYn2b&Signature=Dyl6I9pQ8bx3fa05JibBp4gmcnU%3D",
                "https://kk-oss.oss-cn-shanghai.aliyuncs.com/ctms/uat/2021-07-28/receiptConfirm/M628-003__uuid__46faa4d9-978a-4898-be56-095d8133f4d5__uuid__4171ce90-08cf-4901-aa68-c08162c23da5.jpg?Expires=1632308818&OSSAccessKeyId=LTAI4G83BJatPBRUtmEsYn2b&Signature=GCTvuMPsHTPauD8tvRRgxhd3rsc%3D"
            ],
            "licensePlate":"沪A72524",
            "originWeight":2,
            "originVolume":2,
            "originGoodsNum":2,
            "originAmount":None,
            "originDriverName":"接口司机110",
            "originDriverMobile":"17676387737",
            "originDriverIdCard":None,
            "originArriveTime":"2021-09-22 09:18:01",
            "deductionType":None,
            "deductionAmount":0,
            "actualAmount":0,
            "jumpOccupyLimit":None,
            "approveRemark":None,
            "limitStatus":None
        }
    ]
}

